package com.lxk.service;

import com.lxk.pojo.Admin;
import com.lxk.vo.PageModel;

/**
 * @author JohnSoybean
 * @create 2020/4/13 11:30
 * @description
 */
public interface AdminService {

    /**
     * 获取拍卖总页数
     * @param num
     * @return
     */
    Integer getTotalPages(Integer num);

    /**
     * 获取拍卖记录分页
     * @param pageIndex
     * @param num
     * @param totalPages
     * @return
     */
    PageModel<Admin> selAdminPage(Integer pageIndex, Integer num, Integer totalPages, Integer sort, Integer order);

    /**
     * 按ID查找管理员
     * @param adminId
     * @return
     */
    Admin selById(Integer adminId);

    /**
     * 删除管理员
     * @param adminId
     * @return
     */
    void delAdmin(Integer adminId);


    void addAdmin(Admin admin);


    void modifyAdmin(Admin admin);


}
